#ifndef PROJECTHEADER_H
#define PROJECTHEADER_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct studentInfo
{
    double nScore;
    char cName[64];
    struct studentInfo *next;
};

struct instructorInfo
{
    char cName[64];
    struct instructorInfo *next;
};

typedef struct studentInfo student;
typedef struct instructorInfo instructor;
int nCountIns, nCountStu;

int getMenu ( int isIns, int isStu );
void addStudentInfo ( student **stu );
void addInstructorInfo ( instructor **ins );
void changeStudentInfo ( student **stu );
void changeInstructorInfo ( instructor **ins );
void clearStudent ( student **stu );
void clearInstructor ( instructor **ins );
void deleteStudent ( student **stu );
void deleteInstructor ( instructor **ins );
double getAverageScore (student *stu );
void getStudentScore ( char *c , student *stu );
int isInstructor ( char *c , instructor *ins );
int isStudent ( char *c, student *stu );
void showClass ( instructor *ins, student *stu );
void makeInsEmpty ( instructor **ins );
void makeStuEmpty ( student **stu );
student *readStudents ( FILE *f );
instructor *readInstructors ( FILE *f );
void saveInfo ( instructor *ins, student *stu );
void sortStudents ( FILE *f, student *stu );
void exitProg ();

#endif
